#ifndef STACK_H
#define STACK_H

#include "Person.h"
using namespace std;

struct StackNode
{
public:
	Person * value;
	StackNode* next;
	StackNode() :value(nullptr), next(nullptr) {}
	StackNode(Person * value) :next(nullptr)
	{
		this->value = value;
	}
};

class Stack
{
private:
	StackNode* first;
	int size_;
public:
	Stack();
	~Stack();
	Person * pop();
	void push(Person  *p);
	bool isempty();
};



#endif // STACK_H
